package com.tsxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
@TableName("book")
@ApiModel(value = "商品对象", description = "")
@ToString
public class Book implements Serializable {

    private static final long serialVersionUID = 2L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品分类Id")
    private String bookSortId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("描述")
    private String dscp;

    @ApiModelProperty("价格")
    private String price;

    @ApiModelProperty("版本")
    private String version;

    @ApiModelProperty("颜色")
    private String color;

    @ApiModelProperty("套餐")
    private String suit;
    @ApiModelProperty("数量")
    private Integer count;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("图片")
    private List<BookPicture> bookPicture;
}
